#pragma once
#include "Thread.h"
#include "Mmsystem.h"

class CPlaySound :
	public CThread
{
public:
	CPlaySound();
	virtual ~CPlaySound();
	bool playSound(CString str, DWORD dwStatus,int iWarnBeep);

public:
	int		m_iWarnBeep;
	DWORD	m_dwStatus;

private:
	void Run();
	CString m_strSoundFile;
	CRITICAL_SECTION m_CriticalSection;
};

